package com.cskaoyan.bean.bo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

/**
 * @author yfsper233
 * @time 2021/7/11-16:42
 */
@Data
public class CartAddBo {

    @Min(value = 1,message = "商品id必须为大于1的数字")
    private int goodsId;
    @Min(value = 1,message = "单次商品购买数量合理区间为[1-9999]")
    @Max(value = 9999,message = "单次商品购买数量合理区间为[1-9999]")
    private int number;
    @Min(value =1,message = "货品id必须为大于1的数字")
    private int productId;


}
